/*
 * @Author: your name
 * @Date: 2020-12-08 14:33:16
 * @LastEditTime: 2021-01-04 11:35:35
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \sende_nuxt\plugins\vueLazyLoad.js
 */
import Vue from 'vue'
import VueLazyLoad from 'vue-lazyload'

Vue.use(VueLazyLoad, {
  preLoad: 1.33, // 预加载的宽高比，4:3
  error: require('~/assets/image/defaultProduct.jpg'), // 加载失败时使用的图片
  loading: require('~/assets/image/loading.gif'), // 加载时的loading图
  attempt: 2 //尝试加载次数
})
